package com.group9.mapper;

import com.group9.dto.OrderShow;
import com.group9.dto.PageInfoResult;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderShowMapper {

    List<OrderShow> selectByCustomerIdAndOrderStatus(Integer customerId, Integer orderStatus);
    List<OrderShow> selectUnpaidByCustomerIdAndOrderStatus(Integer customerId, Integer orderStatus);
    List<OrderShow> selectUndeliverByCustomerIdAndOrderStatus(Integer customerId, Integer orderStatus);
    List<OrderShow> selectUnreceiveByCustomerIdAndOrderStatus(Integer customerId, Integer orderStatus);
//    List<OrderShow> selectByOrderPage();
//    PageInfoResult<OrderShow> selectAllOrders(PageInfoResult pageParameter);
    int updateOrderStatus(Integer orderId, Integer orderStatus);
    int orderCount(Integer customerId,Integer orderStatus);

}
